import HttpRequest from "../../utils/HttpRequest"


//获取理财产品精选
export function getcurrentSift() {

	return HttpRequest('/current/current/currentAllProduct', {})
}
// 获取优质产品
export function gethighProduct() {
	return HttpRequest('/regular/regular/highProduct', {})
}
//查询活期理财产品展示
export function getdominatorProduct() {
	return HttpRequest('/current/current/dominatorProduct', {})
}
//查询理财产品详情展示
export function getcurrentDetail(id) {
	return HttpRequest('/current/current/currentDetail', {data:id})
}
//查询理财产品详情折线图
export function getminuteProduct(id) {
	return HttpRequest('/current/current/minuteProduct', {data:id})
}
//查询理财产品详情折线图时间
export function getcurrentTime(time) {
	return HttpRequest('/current/current/currentTime', {data:time})
}
//查询活期理财产品全部收益
export function getearningsProduct() {
	return HttpRequest('/current/current/earningsProduct', {})
}

//定期产品精选优品展示  
export function getregularSift(month) {
	return HttpRequest('/regular/regular/regularSift', {data:month})
}
//
export function getregularSiftWinnow(month) {
	return HttpRequest('/regular/regular/regularSiftWinnow', {})
}
//定期理财详情展示
export function getregularDetail(id) {
	return HttpRequest('/regular/regular/regularDetail', {data:id})
}
//查询定期理财产品详情展示折线图数据
export function getregularMinuteProduct(id) {
	return HttpRequest('/regular/regular/regularMinuteProduct', {data:id})
}
//查询定期期理财产品持有列表
export function getregularHoldsProduct(id) {
	return HttpRequest('/regular/regular/regularHoldsProduct', {})
}
//页面搜索
export function getAllProduct(item){
	return HttpRequest('/message/es/getAllProduct', {data:item})}
//活期理财产品持有列表
export function getholdsProduct() {
	return HttpRequest('/current/current/holdsProduct', {})
}
//黄金理财产品持有列表
export function getUserGoldProductList() {
	return HttpRequest('/gold/userGold/getUserGoldProductList', {})
}
//赎回 order/current/sellCurrent
export function sellCurrent(item){
	return HttpRequest('/order/current/sellCurrent', {data:item,method:"post"})
}
//获取验证码
export function sendCode(item){
	return HttpRequest('/user/user/sendCode', {data:item,method:"post"})
}